home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Mapping
/
m-to-symbol
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
544b
|
21 lines
m-to-symbol symbol length
(setq len1 '(-1/20 1/10 1/20 1/20 3/20 -1/20 -1/20))
(setq len2 '((1/8 -1/8 1/8 1/8) (-1/4) (3/32 1/32 -1/8) (-1/4)))
(setq sym1 '(a b c))
(setq sym2 '(a b = c d = = e f g))
(setq sym3 '((a = b) (c d =) (e = = f)))
(m-to-symbol sym1 len1)
=> (1/20 1/10 1/20)
(m-to-symbol sym2 len1)
=> (1/20 1/10 -1/20 1/20 3/20 -1/20 -1/20 1/20 1/10 1/20)
(m-to-symbol sym3 len1)
=> ((1/20 -1/10 1/20) (1/20 3/20 -1/20) (1/20 -1/20 -1/10 1/20))
(m-to-symbol sym3 len2)
=> ((1/8 -1/8 1/8) (1/4 1/4 -1/4) (3/32 -1/32 -1/8 3/32))